package com.cskaoyan.service;

import com.cskaoyan.bean.pojo.User;
import com.cskaoyan.bean.wxbo.WxAddCartBo;
import com.cskaoyan.bean.wxbo.WxCartCheckedBo;
import com.cskaoyan.bean.wxbo.WxCartCheckedoutBo;
import com.cskaoyan.bean.wxbo.WxCartUpdateBo;
import com.cskaoyan.bean.wxvo.WxCartCheckoutVo;
import com.cskaoyan.bean.wxvo.WxCartListVo;

public interface WxCartService {
    WxCartListVo getCartList(Integer userId);


    WxCartListVo cartChecked(Integer userId, Integer[] productIds, Integer isChecked);


    int addCart(Integer userId, WxAddCartBo wxAddCartBo);

    boolean deleteCart(Integer userId, Integer[] productIds);


    boolean updateCartForUpdate(WxCartUpdateBo wxCartUpdateBo, User currentUser);

    WxCartCheckoutVo checkedout(WxCartCheckedoutBo wxCartCheckedoutBo, User currentUser);

    int getGoodsGountByUserId(Integer userId);

    int fastAddCart(Integer userId, WxAddCartBo wxAddCartBo);
}
